package com.hmall.pay.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Slf4j
public class  messageConventer{
    @Bean
    public MessageConverter messageConverter(){
        log.info("开启mq消息转化机制");
        return new Jackson2JsonMessageConverter();
    }
}



